<!DOCTYPE html>
<html lang=zh-CN>
<head>
<meta charset=utf-8>
<title>Fedora 15/16 安装后需要做的28件事 | Cweili Beta</title>
<meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name=description content="01、 系统安装
登录官方网站下载最新 liveCD 镜像，刻盘安装。
02、 设置 ROOT 可直接登录
打开终端，输入命令
1$ su
输入 root 密码（此时密码不显示，直接输入）">
<meta property=og:type content=article>
<meta property=og:title content="Fedora 15/16 安装后需要做的28件事">
<meta property=og:url content="http://cweili.gitcafe.com/fedora-config/">
<meta property=og:site_name content="Cweili Beta">
<meta property=og:description content="01、 系统安装
登录官方网站下载最新 liveCD 镜像，刻盘安装。
02、 设置 ROOT 可直接登录
打开终端，输入命令
1$ su
输入 root 密码（此时密码不显示，直接输入）">
<meta name=twitter:card content=summary>
<meta name=twitter:title content="Fedora 15/16 安装后需要做的28件事">
<meta name=twitter:description content="01、 系统安装
登录官方网站下载最新 liveCD 镜像，刻盘安装。
02、 设置 ROOT 可直接登录
打开终端，输入命令
1$ su
输入 root 密码（此时密码不显示，直接输入）">
<link rel=alternative href=/atom.xml title="Cweili Beta" type=application/atom+xml>
<link rel=icon href=favicon.png>
<link rel=stylesheet href=//libs.baidu.com/bootstrap/3.2.0/css/bootstrap.min.css type=text/css>
<link rel=stylesheet href=../css/style.css type=text/css>
<!--[if lt IE 9]><script src="//cdn.staticfile.org/html5shiv/3.7/html5shiv.min.js" type="text/javascript"></script><![endif]-->
</head>
<body>
<div id=container>
<nav id=mobile-nav class=visible-xs>
<a href="/" class=mobile-nav-link>首页</a>
<ul class=category-list><li class=category-list-item><a class=category-list-link href=../category/学习笔记>学习笔记</a><span class=category-list-count>40</span></li><li class=category-list-item><a class=category-list-link href=../category/小生活>小生活</a><span class=category-list-count>27</span></li><li class=category-list-item><a class=category-list-link href=../category/杂物>杂物</a><span class=category-list-count>9</span></li></ul>
<a href="/tag/%E7%9B%B8%E5%86%8C/" class=mobile-nav-link>相册</a>
<a href="/about/" class=mobile-nav-link>关于</a>
<div class=clearfix></div>
</nav>
<div id=wrap>
<!--[if lt IE 9]><p class="browsehappy alert alert-danger">您正在使用一个<strong>过时</strong>的浏览器。请<a href="http://browsehappy.com/" target="_blank">更新您的浏览器</a>来达到更好的体验。</p><![endif]-->
<header id=header>
<div id=banner></div>
<div id=header-outer class=outer>
<div id=header-inner class=inner>
<nav class=main-nav>
<div id=main-nav-toggle class="nav-icon visible-xs"><i class="fa fa-bars"></i></div>
<a class="main-nav-link hidden-xs" href="/">首页</a>
</nav>
<nav id=category-nav class=hidden-xs>
<ul class=category-list><li class=category-list-item><a class=category-list-link href=../category/学习笔记>学习笔记</a><span class=category-list-count>40</span></li><li class=category-list-item><a class=category-list-link href=../category/小生活>小生活</a><span class=category-list-count>27</span></li><li class=category-list-item><a class=category-list-link href=../category/杂物>杂物</a><span class=category-list-count>9</span></li></ul>
</nav>
<nav class="main-nav hidden-xs">
<a class=main-nav-link href="/tag/%E7%9B%B8%E5%86%8C/">相册</a>
<a class=main-nav-link href="/about/">关于</a>
</nav>
<nav id=sub-nav>
<a id=nav-rss-link class="nav-icon pull-right hidden-xs" href=/atom.xml title="RSS 订阅"><i class="fa fa-rss"></i></a>
<div id=nav-search-btn class="nav-icon pull-right" title=搜索><i class="fa fa-search"></i></div>
</nav>
<div id=search-form-wrap>
<form action=http://www.baidu.com/baidu accept-charset=utf-8 class=search-form target=_blank>
<input type=search name=word class=search-form-input placeholder=搜索>
<input id=search-form-submit type=submit value=&nbsp; class=search-form-submit>
<input name=tn type=hidden value=bds>
<input name=cl type=hidden value=3>
<input name=ct type=hidden value=2097152>
<input type=hidden name=si value=cweili.gitcafe.com>
<label class=search-form-submit for=search-form-submit><i class="fa fa-search"></i></label>
</form>
</div>
</div>
<div id=header-title class=inner>
<h1 id=logo-wrap>
<a href="/" id=logo>Cweili Beta</a>
</h1>
<h2 id=subtitle-wrap>
<a href="/" id=subtitle>I&#39;m working on it</a>
</h2>
</div>
</div>
</header>
<div class=outer>
<section id=main class=col-sm-9><article id=post-fedora-config class="article article-type-post" itemscope itemprop=blogPost>
<div class=article-meta>
<a href="/fedora-config/" class=article-date>
<time datetime=2011-12-04T14:50:34.000Z itemprop=datePublished>2011-12-04</time>
</a>
<div class=article-category>
<a class=article-category-link href=../category/学习笔记>学习笔记</a>
</div>
</div>
<div class="article-inner jiathis_streak">
<header class=article-header>
<h2 class=article-title itemprop=name>
Fedora 15/16 安装后需要做的28件事
</h2>
</header>
<div class=article-entry itemprop=articleBody>
<h2 id=01、_系统安装>01、 系统安装</h2>
<p>登录官方网站下载最新 liveCD 镜像，刻盘安装。</p>
<h2 id="02、_设置 ROOT 可直接登录">02、 设置 ROOT 可直接登录</h2>
<p>打开终端，输入命令</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line><span class=variable>$ </span>su</div></pre></td></tr></table></figure>
<p>输入 root 密码（此时密码不显示，直接输入）<a id=more></a></p>
<p>输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line><span class=preprocessor># gedit /etc/pam.d/gdm</span></div></pre></td></tr></table></figure>
<p>在文本编辑器中注释掉</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line><span class=attribute>auth required pam_succeed_if.so user !</span>=<span class=string> root quiet</span></div></pre></td></tr></table></figure>
<p>这一行，在这一行前面加上 <code>#</code></p>
<p>即改成</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line><span class=comment>#auth required pam_succeed_if.so user != root quiet</span></div></pre></td></tr></table></figure>
<p>保存退出后继续在终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line><span class=preprocessor># gedit /etc/pam.d/gdm-password</span></div></pre></td></tr></table></figure>
<p>同样地注释掉</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line><span class=attribute>auth required pam_succeed_if.so user !</span>=<span class=string> root quiet</span></div></pre></td></tr></table></figure>
<p>这一行。</p>
<p>保存退出，这样以后就可以直接 root 登录了。</p>
<p>（以上两个文件也可以用 vi 打开编辑）</p>
<h2 id="03、_设置 sudo">03、 设置 sudo</h2>
<p>终端中以 root 身份输入命令</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line><span class=preprocessor># visudo</span></div></pre></td></tr></table></figure>
<p>在配置文件中找到下面的几行内容：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div><div class=line>2</div></pre></td><td class=code><pre><div class=line>## Allow root <span class=keyword>to</span> run any commands anywhere</div><div class=line>root        <span class=keyword>ALL</span>=(<span class=keyword>ALL</span>)        <span class=keyword>ALL</span></div></pre></td></tr></table></figure>
<p>然后，在上行内容下面添加下面内容</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>xxxx        <span class=keyword>ALL</span>=(<span class=keyword>ALL</span>)        <span class=keyword>ALL</span></div></pre></td></tr></table></figure>
<p>其中的 xxxx 改成自己的用户名即可，这样以后就可以用 sudo 命令了。</p>
<h2 id="04、_关闭 selinux">04、 关闭 selinux</h2>
<p>以 root 身份编辑 <code>/etc/selinux/config</code> 文件，更改其中的 SELINUX 项的值就可以关闭和启用 SELinux 服务了。</p>
<p>修改成</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line><span class=attribute>SELINUX</span>=<span class=string>disable     禁用 SeLinux</span></div></pre></td></tr></table></figure>
<p>修改成</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line><span class=attribute>SELINUX</span>=<span class=string>enforcing   使用 SeLinux</span></div></pre></td></tr></table></figure>
<p>如果只是想临时关闭 selinux，可以在终端中输入：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> setenforce <span class=number>0</span></div></pre></td></tr></table></figure>
<h2 id=05、_校园网上网>05、 校园网上网</h2>
<p>对于校园网用户，下载锐捷客户端 <code>mentohust.rpm</code> 安装，地址<a href=http://code.google.com/p/mentohust/downloads/list target=_blank rel=external>http://code.google.com/p/mentohust/downloads/list</a></p>
<p>具体使用说明网站有介绍。</p>
<h2 id="06、_添加 YUM 源">06、 添加 YUM 源</h2>
<p>一般系统自带的更新源速度很慢，可以使用国内网易或搜狐的镜像。</p>
<p>到其开源镜像网站 <code>http://mirrors.163.com/</code> 和 <code>http://mirrors.sohu.com/</code> 下载 fedora 的源配置文件。</p>
<p>为了区别镜像，打开下载的镜像文件后把三个中括号 [] 中的 <code>fedora</code> 分别替换为 <code>fedora-163</code> 与<code>fedora-sohu</code>。</p>
<p>将修改好的配置文件保存到 <code>/etc/yum.repos.d/</code> 目录下。</p>
<p>最后在终端输入：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> yum makecache</div></pre></td></tr></table></figure>
<p>生成缓存即可。</p>
<h2 id="07、_安装 fastestmirror_YUM 插件">07、 安装 fastestmirror YUM 插件</h2>
<p>当 YUM 源很多时，安装 <code>fastestmirror</code> 插件可以使得 <code>yum</code> 从速度最快的 yum 源下载。</p>
<p>在终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ sudo yum <span class=operator><span class=keyword>install</span> yum-<span class=keyword>plugin</span>-fastestmirror</span></div></pre></td></tr></table></figure>
<p>更多 YUM 插件可以运行以下命令来查看：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> yum info yum-plugin-*</div></pre></td></tr></table></figure>
<h2 id=08、_升级系统>08、 升级系统</h2>
<p>在终端中运行命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> yum update</div></pre></td></tr></table></figure>
<h2 id=09、_删除废旧内核>09、 删除废旧内核</h2>
<p>升级完系统后通常会有好几个内核，如何删除废旧内核呢：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div><div class=line>2</div></pre></td><td class=code><pre><div class=line>rpm -qa | <span class=keyword>grep</span> kernel <span class=comment>// 查看并列出所有内核</span></div><div class=line>rpm -e kernel 的名字 <span class=comment>// 删除选定名字的内核</span></div></pre></td></tr></table></figure>
<p>例子：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div><div class=line>2</div><div class=line>3</div><div class=line>4</div><div class=line>5</div><div class=line>6</div><div class=line>7</div><div class=line>8</div></pre></td><td class=code><pre><div class=line>[xie@xie ~]$ rpm -aq | grep kernel</div><div class=line>abrt-plugin-kerneloopsreporter-<span class=number>1.0</span><span class=number>.0</span>-<span class=number>1.f</span>c12.i686</div><div class=line>kernel-firmware-<span class=number>2.6</span><span class=number>.31</span><span class=number>.9</span>-<span class=number>174.f</span>c12.noarch</div><div class=line>kernel-<span class=number>2.6</span><span class=number>.31</span><span class=number>.5</span>-<span class=number>127.f</span>c12.i686</div><div class=line>kernel-<span class=number>2.6</span><span class=number>.31</span><span class=number>.9</span>-<span class=number>174.f</span>c12.i686</div><div class=line>kernel-headers-<span class=number>2.6</span><span class=number>.31</span><span class=number>.9</span>-<span class=number>174.f</span>c12.i686</div><div class=line>abrt-addon-kerneloops-<span class=number>1.0</span><span class=number>.0</span>-<span class=number>1.f</span>c12.i686</div><div class=line>[xie@xie ~]$ rpm -e kernel-<span class=number>2.6</span><span class=number>.31</span><span class=number>.5</span>-<span class=number>174.f</span>c12.i686</div></pre></td></tr></table></figure>
<h2 id="10、_添加 rpmfusion 源">10、 添加 rpmfusion 源</h2>
<p>rpmfusion 源是极具影响力的第三方软件仓库，提供有版权 (nonfree) 和专利 (free) 问题的免费软件，对于一般用户来说 rpmfusion 源可以说是必不可少的。</p>
<p>在终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line><span class=variable>$ </span>sudo rpm -ivh <span class=symbol>http:</span>/<span class=regexp>/download1.rpmfusion.org/free</span><span class=regexp>/fedora/rpmfusion</span>-free-release-stable.noarch.rpm <span class=symbol>http:</span>/<span class=regexp>/download1.rpmfusion.org/nonfree</span><span class=regexp>/fedora/rpmfusion</span>-nonfree-release-stable.noarch.rpm</div></pre></td></tr></table></figure>
<p>最后输入：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line><span class=variable>$sudo</span> yum makecache</div></pre></td></tr></table></figure>
<p>生成 yum 缓存即可，这样就安装了 rpmfusion 源。</p>
<p>（以上的两个链接也可以换为 <code>http://mirrors.163.com/rpmfusion/free/fedora/rpmfusion-free-release-stable.noarch.rpm</code> 或 <code>http://mirrors.163.com/rpmfusion/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm</code>）</p>
<h2 id=11、_安装多媒体解码器>11、 安装多媒体解码器</h2>
<p>fedora 默认没有安装视频解码器，所以不能听歌看视频，打开歌曲时会提示缺少 MPEG-1 Layer3。</p>
<p>首先确保系统已经安装 rpmfusion 源，在终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div><div class=line>2</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> yum install ffmpeg ffmpeg-libs gstreamer-ffmpeg libmatrosca xvidcore libdvdread libdvdnav lsdvd</div><div class=line>$ <span class=built_in>sudo</span> yum install gstreamer-plugins-good gstreamer-plugins-bad gstreamer-plugins-ugly</div></pre></td></tr></table></figure>
<p>这样系统自带播放器就可以播放音乐以及视频了。</p>
<h2 id=12、_播放器音乐标签乱码>12、 播放器音乐标签乱码</h2>
<p>网上的方法大都是说把 mp 格式的文件的 tag 用以下命令转换：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line><span class=title>mid3iconv</span> -e gbk <span class=regexp>*.mp</span>3</div></pre></td></tr></table></figure>
<p>这样操作之后虽然 linux 下的乱码解决了，但是在 windows 下又会出现乱码。</p>
<p>比较完美的方法是修改环境变量，以 root 身份修改 <code>/etc/profile</code> 文件：</p>
<p>在文件最后加入下面两行</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div><div class=line>2</div></pre></td><td class=code><pre><div class=line>export <span class=constant>GST_ID3_TAG_ENCODING</span>=<span class=constant>GBK</span><span class=symbol>:UTF-</span><span class=number>8</span><span class=symbol>:GB18030</span></div><div class=line>export <span class=constant>GST_ID3V2_TAG_ENCODING</span>=<span class=constant>GBK</span><span class=symbol>:UTF-</span><span class=number>8</span><span class=symbol>:GB18030</span></div></pre></td></tr></table></figure>
<p>注销后重新导入歌曲信息即可解决乱码。</p>
<h2 id="13、_gedit 打开文件乱码">13、 gedit 打开文件乱码</h2>
<p>由于编码格式的不同 fedora 打开 windows 下的文本文件经常会出现乱码。</p>
<p>网上的解决办法通常都是通过 <code>/etc/sysconfig/i18n</code> 文件修改环境变量来达到目的，这里的方法不需要这样做。</p>
<p>方法一：</p>
<p>终端输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div><div class=line>2</div></pre></td><td class=code><pre><div class=line>$ gsettings set <span class=transposed_variable>org.</span><span class=transposed_variable>gnome.</span><span class=transposed_variable>gedit.</span><span class=transposed_variable>preferences.</span>encodings auto-detected <span class=string>"['</span>UTF-<span class=number>8</span><span class=string>','</span><span class=transposed_variable>GB18030'</span>, <span class=string>'GB2312'</span>, <span class=string>'GBK'</span>, <span class=string>'BIG5'</span>, <span class=string>'CURRENT'</span>, <span class=string>'UTF-16'</span>]<span class=string>"</span></div><div class=line>$ gsettings set org.gnome.gedit.preferences.encodings shown-in-menu "<span class=matrix>[<span class=string>'UTF-8'</span>, <span class=string>'GB18030'</span>, <span class=string>'GB2312'</span>, <span class=string>'GBK'</span>, <span class=string>'BIG5'</span>, <span class=string>'CURRENT'</span>, <span class=string>'UTF-16'</span>]</span><span class=string>"</span></div></pre></td></tr></table></figure>
<p>方法二：</p>
<p>安装 <code>dconf-editor</code>（gconf-editor 的升级版）：</p>
<p>终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div><div class=line>2</div></pre></td><td class=code><pre><div class=line><span class=variable>$ </span>sudo yum install dconf-tools</div><div class=line><span class=variable>$ </span>dconf-editor</div></pre></td></tr></table></figure>
<p>依次点开 <code>-&gt; org -&gt; gnome -&gt; gedit -&gt; preferences -&gt; encodings</code></p>
<p>在 <code>auto-detected</code> 的 <code>value</code> 项中加入 <code>GB18030</code>, 写在第二位；</p>
<p>在 <code>shown-in-menu</code> 的 <code>value</code> 项中加入 <code>GB18030</code>, 写在第二位。</p>
<p>（对应着方法一中括号中的值）</p>
<p>（在 fedora14 及之前的版本中在终端中输入命令：<code>$ sudo yum install gconf-editor</code> 安装 <code>gconf-editor</code>，然后输入命令：<code>$ gconf-editor</code> 依次点开 <code>apps -&gt; gedit-2 -&gt; preferences -&gt; encodings</code> 中的 <code>auto-detected</code>, 在双击弹出对话框中加入 <code>GB18030</code>，<code>GBK</code>，<code>GB2312</code> 就可以了）</p>
<h2 id=14、_当前目录右键打开终端>14、 当前目录右键打开终端</h2>
<p>在终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ sudo yum <span class=operator><span class=keyword>install</span> nautilus-<span class=keyword>open</span>-terminal</span></div></pre></td></tr></table></figure>
<p>重启 X（Ctrl＋Alt＋Backspace）</p>
<h2 id="15、_安装 vim">15、 安装 vim</h2>
<p>vim 是 vi 的加强版，可以高亮显示程序源码中的函数变量等。</p>
<p>在终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> yum install vim</div></pre></td></tr></table></figure>
<p>安装完成。</p>
<h2 id="16、_ibus 输入法">16、 ibus 输入法</h2>
<p>在 fedora 中由于我默认安装环境是英文，所以中文输入法没有开启，可以自己打开并设置为可用状态，选择中文输入法 Pinyin 就行了。</p>
<p>如果没有输入法可以安装 ibus，在终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div><div class=line>2</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> yum install ibus</div><div class=line>$ <span class=built_in>sudo</span> yum install ibus-sunpinyin</div></pre></td></tr></table></figure>
<h2 id="17、_安装 libreoffice">17、 安装 libreoffice</h2>
<p>首先安装 libreoffice.org 套件，终端中输入命令：<code>$ sudo yum groupinstall &quot;Office/Productivity&quot;</code></p>
<p>安装好后，由于采用默认安装，语言是英文，在终端中输入如下命令查找来安装中文语言包：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div><div class=line>2</div><div class=line>3</div><div class=line>4</div><div class=line>5</div><div class=line>6</div><div class=line>7</div><div class=line>8</div><div class=line>9</div><div class=line>10</div></pre></td><td class=code><pre><div class=line>$ sudo yum list libreoffice*</div><div class=line></div><div class=line><span class=code>....</span></div><div class=line>libreoffice-langpack-ur.i686                    1:3.3.2.2-7.fc15         fedora</div><div class=line>libreoffice-langpack-ve.i686                    1:3.3.2.2-7.fc15         fedora</div><div class=line>libreoffice-langpack-xh.i686                    1:3.3.2.2-7.fc15         fedora</div><div class=line>libreoffice-langpack-zh-Hans.i686               1:3.3.2.2-7.fc15         fedora</div><div class=line>libreoffice-langpack-zh-Hant.i686               1:3.3.2.2-7.fc15         fedora</div><div class=line>libreoffice-langpack-zu.i686                    1:3.3.2.2-7.fc15         fedora</div><div class=line>....</div></pre></td></tr></table></figure>
<p>然后安装中文语言包，在终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div><div class=line>2</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> yum -y install libreoffice-langpack-zh-Hans</div><div class=line>$ <span class=built_in>sudo</span> yum -y install libreoffice-langpack-zh-Hant</div></pre></td></tr></table></figure>
<p>这样就完成了中文 OpenOffice 中文版的安装。</p>
<p>(openoffice 方法形同，只不过把 libreoffice 改为 openoffice 就可以了)</p>
<h2 id="18、_安装 gcc_g77">18、 安装 gcc g77</h2>
<p>在终端中输入命令安装 gcc：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> yum install gcc*</div></pre></td></tr></table></figure>
<p>在终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> yum search g77</div></pre></td></tr></table></figure>
<p>可以看到</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>compat-gcc-34-g77.i686 : Fortran 77 support <span class=keyword>for</span> <span class=keyword>compatibility</span> compiler</div></pre></td></tr></table></figure>
<p>在终端中输入命令安装 g77：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> yum install compat-gcc-<span class=number>34</span>-g77</div></pre></td></tr></table></figure>
<h2 id="19、_安装 CHM 阅读器">19、 安装 CHM 阅读器</h2>
<p><code>gnochm</code> 是一个 gnome 环境下比较完美的 chm 阅读器了，可以说是完美支持中文的。</p>
<p>在终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> yum install gnochm</div></pre></td></tr></table></figure>
<p>安装完成。</p>
<h2 id="20、_安装 firefox_flash 插件">20、 安装 firefox flash 插件</h2>
<p>方法一：</p>
<p>到 adobe 官方网站下载 linux 下的 flash 插件安装。</p>
<p>方法二：</p>
<p>首先添加 adobe 软件仓并导入密钥, 在终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div><div class=line>2</div></pre></td><td class=code><pre><div class=line><span class=variable>$ </span>sudo rpm -ivh <span class=symbol>http:</span>/<span class=regexp>/linuxdownload.adobe.com/linux</span><span class=regexp>/i386/adobe</span>-release-i386-<span class=number>1.0</span>-<span class=number>1</span>.noarch.rpm</div><div class=line><span class=variable>$ </span>sudo rpm --import /etc/pki/rpm-gpg/<span class=constant>RPM</span>-<span class=constant>GPG</span>-<span class=constant>KEY</span>-adobe-linux</div></pre></td></tr></table></figure>
<p>然后在终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ sudo yum <span class=operator><span class=keyword>install</span> flash-<span class=keyword>plugin</span></span></div></pre></td></tr></table></figure>
<p>安装完成。</p>
<h2 id="21、_安装 unrar">21、 安装 unrar</h2>
<p>fedora 默认无法直接打开 rar 压缩文件，需要安装 <code>unrar</code>。</p>
<p>在终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> yum install unrar</div></pre></td></tr></table></figure>
<p>安装完成。</p>
<h2 id="22、_安装系统清理工具 BleachBit">22、 安装系统清理工具 BleachBit</h2>
<p><code>BleachBit</code> 是一款专为 Linux 设计的系统清理工具。使用 BleachBit，你可以清理系统中的缓存、历史、临时文件、cookies 等不需要的东西，这样可以释放你的磁盘空间。当前，BleachBit 能够清理 Beagle、Firefox、Opera、Epiphany、Flash、OpenOffice.org 等软件所产生的垃圾文件。</p>
<p>终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> yum install bleachbit</div></pre></td></tr></table></figure>
<p>安装完成。</p>
<h2 id="23、_安装漫画阅读器 comix">23、 安装漫画阅读器 comix</h2>
<p><code>comix</code> 是一个 linux 下非常好用的图片阅读器，支持直接从压缩包中读取图片，特别适合漫画阅读。</p>
<p>终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> yum install comix</div></pre></td></tr></table></figure>
<p>安装完成。</p>
<h2 id="24、_安装 gnome3_tweak_tool 工具">24、 安装 gnome3 tweak tool 工具</h2>
<p>fedora 15 采用 gnome3 之后，gnome-tweak-tool 为配置桌面必不可少的工具。</p>
<p>终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> yum install gnome-tweak-tool</div></pre></td></tr></table></figure>
<p>安装完成。</p>
<h2 id="25、_设置 Delete 键直接删除文件">25、 设置 Delete 键直接删除文件</h2>
<p>在 Fedora 15 GNOME 3 环境下，默认使用 Delete 键删除文件的时候，必须配合 Ctrl 键才能实现。一般来说这很麻烦，更改这一设置可以用如下方法.</p>
<p>首先，在终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ gsettings <span class=keyword>set</span> org.gnome.desktop.<span class=keyword>interface</span> can-change-accels <span class=keyword>true</span></div></pre></td></tr></table></figure>
<p>其次，打开 Nautilus 文件管理器，选中任意一个文件，然后打开“编辑（Edit）”选项，将鼠标移动到“Move to Trash（移动到回收站）”，这时，连续按“Delete”按钮两次。这样就设置 Delete 键直接删除文件啦。</p>
<p>最后，禁用快捷键设置功能，在终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ gsettings <span class=keyword>set</span> org.gnome.desktop.<span class=keyword>interface</span> can-change-accels <span class=keyword>false</span></div></pre></td></tr></table></figure>
<h2 id="26、_安装 Faenza 图标集">26、 安装 Faenza 图标集</h2>
<p>在终端中输入命令：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> yum search faenza</div></pre></td></tr></table></figure>
<p>可以得到</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>faenza-icon-theme.noarch : Icon theme designed <span class=keyword>for</span> Equinox GTK theme</div></pre></td></tr></table></figure>
<p>在终端中输入命令安装 Faenza 图标集：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> yum install faenza-icon-theme</div></pre></td></tr></table></figure>
<p>安装完毕之后，使用 gnome3-tweak-tool 启用主题，在 interface 栏中的 Icon Theme 项中选 Faenza 即可。</p>
<h2 id="27、_安装 Windows 字体">27、 安装 Windows 字体</h2>
<p>将 Windows 系统内的字体复制到 <code>/usr/share/fonts/MSfonts</code> 下，没有目录就 <code>mkdir</code> 建立一个。</p>
<p>在终端中输入命令为字体文件加上运行权限：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line><span class=variable>$sudo</span> <span class=keyword>chmod</span> -R  <span class=number>755</span> usr/share/fonts/MSfonts</div></pre></td></tr></table></figure>
<p>在终端中输入命令更新字体缓存：</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line>$ <span class=built_in>sudo</span> fc-cache -fv</div></pre></td></tr></table></figure>
<p>字体安装完毕。</p>
<h2 id="28、_改进 fedora_15 字体显示效果">28、 改进 fedora 15 字体显示效果</h2>
<p>首先安装 <a href=http://www.infinality.net/fedora/linux/infinality-repo-1.0-1.noarch.rpm target=_blank rel=external>http://www.infinality.net/fedora/linux/infinality-repo-1.0-1.noarch.rpm</a> 这个软件包。</p>
<p>然后</p>
<figure class=highlight><table><tr><td class=gutter><pre><div class=line>1</div></pre></td><td class=code><pre><div class=line><span class=built_in>sudo</span> yum search infinality</div></pre></td></tr></table></figure>
<p>可以看到有两个包，都安上。</p>
<p>重新登录系统效果生效。</p>
<p>原文： <a href=http://www.linuxdiyf.com/bbs/thread-203110-1-1.html target=_blank rel=external>http://www.linuxdiyf.com/bbs/thread-203110-1-1.html</a></p>
<div class=ujian-hook></div>
</div>
<footer class=article-footer>
<div class=bdsharebuttonbox>
<a href=# class=bds_tsina data-cmd=tsina title=分享到新浪微博></a>
<a href=# class=bds_qzone data-cmd=qzone title=分享到QQ空间></a>
<a href=# class=bds_tqq data-cmd=tqq title=分享到腾讯微博></a>
<a href=# class=bds_weixin data-cmd=weixin title=分享到微信></a>
<a href=# class=bds_tieba data-cmd=tieba title=分享到百度贴吧></a>
<a href=# class=bds_renren data-cmd=renren title=分享到人人网></a>
<a href=# class=bds_tqf data-cmd=tqf title=分享到腾讯朋友></a>
<a href=# class=bds_douban data-cmd=douban title=分享到豆瓣网></a>
<a href=# class=bds_tsohu data-cmd=tsohu title=分享到搜狐微博></a>
<a href=# class=bds_t163 data-cmd=t163 title=分享到网易微博></a>
<a href=# class=bds_taobao data-cmd=taobao title=分享到我的淘宝></a>
<a href=# class=bds_fx data-cmd=fx title=分享到飞信></a>
<a href=# class=bds_hi data-cmd=hi title=分享到百度空间></a>
<a href=# class=bds_more data-cmd=more></a>
</div>
<ul class=article-tag-list><li class=article-tag-list-item><a class=article-tag-list-link href=../tag/fedora>Fedora</a></li><li class=article-tag-list-item><a class=article-tag-list-link href=../tag/gnome>Gnome</a></li><li class=article-tag-list-item><a class=article-tag-list-link href=../tag/linux>Linux</a></li><li class=article-tag-list-item><a class=article-tag-list-link href=../tag/操作系统>操作系统</a></li><li class=article-tag-list-item><a class=article-tag-list-link href=../tag/计算机>计算机</a></li></ul>
</footer>
</div>
<nav id=article-nav>
<a href="/html-special-characters/" id=article-nav-newer class=article-nav-link-wrap>
<strong class=article-nav-caption>Newer</strong>
<div class=article-nav-title>
HTML特殊字符
</div>
</a>
<a href="/virtualbox-ose-vboxxpcombase-xpt/" id=article-nav-older class=article-nav-link-wrap>
<strong class=article-nav-caption>Older</strong>
<div class=article-nav-title>Fedora 15/16 安装 VirtualBox-OSE 出现找不到 VBoxXPCOMBase.xpt 的解决办法</div>
</a>
</nav>
</article>
<section id=comments>
<div class=ds-thread data-thread-key="fedora-config/" data-title="Fedora 15/16 安装后需要做的28件事" data-url="http://cweili.gitcafe.com/fedora-config/"></div>
</section>
</section>
<aside id=sidebar class=col-sm-3>
<div class="widget-wrap hidden-xs">
<h3 class=widget-title>分类</h3>
<div class=widget>
<ul class=category-list><li class=category-list-item><a class=category-list-link href=../category/学习笔记>学习笔记</a><span class=category-list-count>40</span></li><li class=category-list-item><a class=category-list-link href=../category/小生活>小生活</a><span class=category-list-count>27</span></li><li class=category-list-item><a class=category-list-link href=../category/杂物>杂物</a><span class=category-list-count>9</span></li></ul>
</div>
</div>
<div class=widget-wrap>
<h3 class=widget-title>最新评论</h3>
<div class=widget>
<div class=ds-recent-comments data-num-items=10 data-show-avatars=1 data-show-time=1 data-show-title=0 data-show-admin=1 data-excerpt-length=20>
<div class=text-center><i class="fa fa-refresh fa-spin"></i></div>
</div>
</div>
</div>
<div class=widget-wrap>
<h3 class=widget-title>最新文章</h3>
<div class=widget>
<ul>
<li>
<a href="/xixishidi/">河塘飞鸟西溪湿地</a>
</li>
<li>
<a href="/xizihu/">水光潋滟西子湖畔</a>
</li>
<li>
<a href="/xitang/">柳絮纷飞烟雨西塘</a>
</li>
<li>
<a href="/wuzhen/">灯火阑珊水映乌镇</a>
</li>
<li>
<a href="/stu3-zoo/">Stu3 Zoo</a>
</li>
<li>
<a href="/jshint-options/">JSHint配置参数详解</a>
</li>
<li>
<a href="/css3-jquery-rocket-to-top/">CSS3动画与jQuery实现返回顶部小火箭</a>
</li>
<li>
<a href="/rebuild-blog-gitcafe/">再一次重建我的博客</a>
</li>
<li>
<a href="/java-poi-excel/">Java使用POI创建Excel图表</a>
</li>
<li>
<a href="/hibernate-connect-sqlite-paging-bug-repair/">Hibernate 连接 SQLite (hibernate-sqlite) 分页bug的修复</a>
</li>
<li>
<a href="/web-page-color-chart/">更全的网页颜色表</a>
</li>
<li>
<a href="/quarrying-rocky-4/">20120407春游采石矶(四)</a>
</li>
<li>
<a href="/quarrying-rocky-3/">20120407春游采石矶(三)</a>
</li>
<li>
<a href="/quarrying-rocky-2/">20120407春游采石矶(二)</a>
</li>
<li>
<a href="/quarrying-rocky/">20120407春游采石矶(一)</a>
</li>
<li>
<a href="/ahpu-spring/">安徽工程大学的春天</a>
</li>
<li>
<a href="/helps-students-assembled-computer/">帮同学组装帅气小机箱电脑一台</a>
</li>
<li>
<a href="/nanjing-trip-4/">20120310南京二日行(四)</a>
</li>
<li>
<a href="/nanjing-trip-3/">20120310南京二日行(三)</a>
</li>
<li>
<a href="/nanjing-trip-2/">20120310南京二日行(二)</a>
</li>
</ul>
</div>
</div>
<div class="widget-wrap hidden-xs">
<h3 class=widget-title>手机阅读</h3>
<div class=widget>
<div class=qrcode style="background-image:url(http://qr.liantu.com/api.php?bg=eeeeee&fg=000000&el=l&w=192&m=0&text=http://cweili.gitcafe.com/fedora-config/)"></div>
</div>
</div>
<div class="widget-wrap hidden-xs">
<h3 class=widget-title>标签云</h3>
<div class="widget tagcloud">
<a href=../tag/acm style=font-size:10px>ACM</a><a href=../tag/c++ style=font-size:15.71px>C++</a><a href=../tag/css style=font-size:10px>CSS</a><a href=../tag/fedora style=font-size:15.71px>Fedora</a><a href=../tag/gnome style=font-size:11.43px>Gnome</a><a href=../tag/hibernate style=font-size:10px>Hibernate</a><a href=../tag/jshint style=font-size:10px>JSHint</a><a href=../tag/java style=font-size:11.43px>Java</a><a href=../tag/javascript style=font-size:12.86px>JavaScript</a><a href=../tag/linux style=font-size:17.14px>Linux</a><a href=../tag/pdo style=font-size:10px>PDO</a><a href=../tag/php style=font-size:12.86px>PHP</a><a href=../tag/poi style=font-size:10px>POI</a><a href=../tag/photoshop style=font-size:14.29px>Photoshop</a><a href=../tag/sae style=font-size:10px>SAE</a><a href=../tag/sql style=font-size:14.29px>SQL</a><a href=../tag/sqlite style=font-size:11.43px>SQLite</a><a href=../tag/stl style=font-size:11.43px>STL</a><a href=../tag/stu3 style=font-size:10px>Stu3</a><a href=../tag/twitter style=font-size:10px>Twitter</a><a href=../tag/virtualbox style=font-size:10px>VirtualBox</a><a href=../tag/jquery style=font-size:10px>jQuery</a><a href=../tag/三国杀 style=font-size:15.71px>三国杀</a><a href=../tag/乌镇 style=font-size:10px>乌镇</a><a href=../tag/互联网 style=font-size:10px>互联网</a><a href=../tag/动漫 style=font-size:11.43px>动漫</a><a href=../tag/动画 style=font-size:10px>动画</a><a href=../tag/南京 style=font-size:14.29px>南京</a><a href=../tag/博客 style=font-size:14.29px>博客</a><a href=../tag/实验 style=font-size:15.71px>实验</a><a href=../tag/容器 style=font-size:11.43px>容器</a><a href=../tag/小说 style=font-size:10px>小说</a><a href=../tag/微博 style=font-size:11.43px>微博</a><a href=../tag/心情 style=font-size:14.29px>心情</a><a href=../tag/摄影 style=font-size:17.14px>摄影</a><a href=../tag/操作系统 style=font-size:14.29px>操作系统</a><a href=../tag/数据库 style=font-size:18.57px>数据库</a><a href=../tag/旅行 style=font-size:20px>旅行</a><a href=../tag/日记 style=font-size:17.14px>日记</a><a href=../tag/杭州 style=font-size:11.43px>杭州</a>
</div>
</div>
<div class="widget-wrap hidden-xs">
<h3 class=widget-title>归档</h3>
<div class=widget>
<ul class=archive-list><li class=archive-list-item><a class=archive-list-link href=../archive/2014/09>September 2014</a><span class=archive-list-count>4</span></li><li class=archive-list-item><a class=archive-list-link href=../archive/2014/08>August 2014</a><span class=archive-list-count>4</span></li><li class=archive-list-item><a class=archive-list-link href=../archive/2012/09>September 2012</a><span class=archive-list-count>1</span></li><li class=archive-list-item><a class=archive-list-link href=../archive/2012/05>May 2012</a><span class=archive-list-count>2</span></li><li class=archive-list-item><a class=archive-list-link href=../archive/2012/04>April 2012</a><span class=archive-list-count>5</span></li><li class=archive-list-item><a class=archive-list-link href=../archive/2012/03>March 2012</a><span class=archive-list-count>5</span></li><li class=archive-list-item><a class=archive-list-link href=../archive/2011/12>December 2011</a><span class=archive-list-count>4</span></li><li class=archive-list-item><a class=archive-list-link href=../archive/2011/11>November 2011</a><span class=archive-list-count>18</span></li><li class=archive-list-item><a class=archive-list-link href=../archive/2011/10>October 2011</a><span class=archive-list-count>32</span></li><li class=archive-list-item><a class=archive-list-link href=../archive/2011/05>May 2011</a><span class=archive-list-count>2</span></li></ul>
</div>
</div>
<div class="widget-wrap hidden-xs">
<h3 class=widget-title>友情链接</h3>
<div class=widget>
<ul>
<li>
<a href=http://cweili.gitcafe.com target=_blank>主页</a>
</li>
</ul>
</div>
</div>
</aside>
</div>
<footer id=footer>
<div class=footer-wrap>
<div class=outer>
<div class=inner>
<div id=social-network>
<a class=link href=https://github.com/Cweili target=_blank><i class="fa fa-fw fa-github"></i></a>
<a class=link href=http://weibo.com/cweili target=_blank><i class="fa fa-fw fa-weibo"></i></a>
</div>
<div id=footer-info>
&copy; 2014 <a href=http://cweili.gitcafe.com target=_blank>Cweili</a><br>
Powered by <a href="http://hexo.io/" target=_blank>Hexo</a>.
Theme by <a href=http://cweili.gitcafe.com target=_blank>Cweili</a>.
</div>
</div>
</div>
</div>
</footer>
</div>
</div>
<div id=rocket-to-top>
<div class=onhover></div>
<div class=anim></div>
</div>
<link rel=stylesheet href=//libs.baidu.com/fontawesome/4.0.3/css/font-awesome.min.css css type=text/css>
<script src=//libs.baidu.com/jquery/1.11.1/jquery.min.js type=text/javascript></script><link rel=stylesheet href=//cdn.staticfile.org/fancybox/2.1.5/jquery.fancybox.min.css type=text/css>
<script src=//cdn.staticfile.org/fancybox/2.1.5/jquery.fancybox.min.js type=text/javascript></script><script src=../js/script.js type=text/javascript></script><script type=text/javascript>var duoshuoQuery={short_name:"cweiligitcafe"};</script><script src=//static.duoshuo.com/embed.js type=text/javascript></script><script type=text/javascript>var ujian_config={num:10,showType:3};</script><script src="http://v1.ujian.cc/code/ujian.js?uid=1539214&_=.js" type=text/javascript></script><script type=text/javascript>window._bd_share_config={common:{bdSnsKey:{},bdPopTitle:"分享到",bdMini:2,bdPopupOffsetLeft:28,bdPopupOffsetTop:108,bdMiniList:["sqq","mshare","bdysc","kaixin001","ibaidu","baidu","ff","qy","meilishuo","mogujie","diandian","ty","youdao","sdo"],bdPic:"",bdStyle:1,bdSize:"24"},share:{},image:{viewList:["tsina","qzone","tqq","weixin","tieba","renren","tqf","douban","tsohu","t163","taobao","fx","hi"],viewText:" ",viewSize:"24"},selectShare:{bdContainerClass:"article",bdSelectMiniList:["tsina","qzone","tqq","weixin","tieba","renren","tqf","douban","tsohu","t163","taobao","fx","hi"]}},document.write('<script type="text/javascript" src="http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion='+~(-new Date/36e5)+'"><\/script>');</script><div id=stat-wrap>
<script src="http://s19.cnzz.com/stat.php?id=1252976445&web_id=1252976445" type=text/javascript></script></div></body></html>